package com.example.kaogong.sys.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 评论
 * </p>
 *
 * @author    
 * @since 2022-03-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_comment")
@ApiModel(value="Comment对象", description="评论")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "评论编号")
    @TableId(value = "cid", type = IdType.AUTO)
    private Integer cid;

    @ApiModelProperty(value = "用户编号")
    private Integer uid;

    @ApiModelProperty(value = "帖子编号")
    private Integer postId;

    @ApiModelProperty(value = "发表时间")
    private LocalDateTime postTime;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "回复编号", notes = "回复的哪一条评论")
    private Integer replyId;

    @ApiModelProperty(value = "评论者编号", notes = "指明对哪个用户进行回复")
    private Integer targetId;

    @ApiModelProperty(value = "点赞")
    private Integer like;

}
